import request from "../utils/request.js";
//添加商品
export function addgoods(data) {
  return request.post
  ("/api/addgoods/add", data);
}
//查询所有商品
export function fetch() {
    return request.get("/api/addgoods/all");
}